<?php
if (isset($this->previous)){
	echo ' <a href = "'.$this->url(array('page'=> $this->previous)). '">  < Previous .</a>';
}
else echo "Start";
foreach ($this->pagesInRange as $page){
	if ($this->current !=$page){
	echo ' <a href = "'.$this->url(array('page'=> $page)). '">' .$page .'</a>  |';
	} else{
		echo $page . ' | ';
	}
}

if (isset($this->next)){
	echo ' <a href = "'.$this->url(array('page'=> $this->next)). '"> Next .</a>';
}
else echo "End";
?>


<br>Showing <?php echo $this->current; ?> Out of <?php echo $this->pageCount;?>